package com.bmw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.web.WebApplicationInitializer;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Hello world!
 *
 */

@SpringBootApplication
public class App extends SpringBootServletInitializer implements WebApplicationInitializer
{
    public static void main( String[] args ) throws IOException {
        Properties properties=new Properties();
        InputStream in=App.class.getClassLoader().getResourceAsStream("application-location.properties");
        properties.load(in);
        SpringApplication app=new SpringApplication(App .class);
        app.setDefaultProperties(properties);
//        app.run(args);
        SpringApplication.run(App.class);
    }
}
